/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_catalog_permission.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_CATALOG_PERMISSION
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_catalog_permission.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_CATALOG_PERMISSION::CTable_PPM_CATALOG_PERMISSION( )
 :NPCRecordSet( )
{
  setTableName( "PPM_CATALOG_PERMISSION" );
  prepareTable();
  prepareQuery();
 
  RELA_ID.setField( "RELA_ID", DATA_CHAR, 20, 1 );
  makeTableItem( RELA_ID );
  makeKeyItem( RELA_ID ); 
  LIMIT_ID.setField( "LIMIT_ID", DATA_CHAR, 20, 0 );
  makeTableItem( LIMIT_ID );
  TYPE.setField( "TYPE", DATA_CHAR, 10, 0 );
  makeTableItem( TYPE );
  CATALOG_ID.setField( "CATALOG_ID", DATA_CHAR, 20, 0 );
  makeTableItem( CATALOG_ID );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  MODIFY_DATE.setField( "MODIFY_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFY_DATE );
  REMARK.setField( "REMARK", DATA_CHAR, 1024, 0 );
  makeTableItem( REMARK );
  AREA_ID.setField( "AREA_ID", DATA_CHAR, 20, 0 );
  makeTableItem( AREA_ID );
}


CTable_PPM_CATALOG_PERMISSION::CTable_PPM_CATALOG_PERMISSION( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_CATALOG_PERMISSION" );
  prepareTable();
  prepareQuery();
 
  RELA_ID.setField( "RELA_ID", DATA_CHAR, 20, 1 );
  makeTableItem( RELA_ID );
  makeKeyItem( RELA_ID ); 
  LIMIT_ID.setField( "LIMIT_ID", DATA_CHAR, 20, 0 );
  makeTableItem( LIMIT_ID );
  TYPE.setField( "TYPE", DATA_CHAR, 10, 0 );
  makeTableItem( TYPE );
  CATALOG_ID.setField( "CATALOG_ID", DATA_CHAR, 20, 0 );
  makeTableItem( CATALOG_ID );
  STATE.setField( "STATE", DATA_CHAR, 6, 0 );
  makeTableItem( STATE );
  CREATE_DATE.setField( "CREATE_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( CREATE_DATE );
  MODIFY_DATE.setField( "MODIFY_DATE", DATA_DATETIME, 7, 0 );
  makeTableItem( MODIFY_DATE );
  REMARK.setField( "REMARK", DATA_CHAR, 1024, 0 );
  makeTableItem( REMARK );
  AREA_ID.setField( "AREA_ID", DATA_CHAR, 20, 0 );
  makeTableItem( AREA_ID );
}

CTable_PPM_CATALOG_PERMISSION::~CTable_PPM_CATALOG_PERMISSION( )
{
    close();
}

